<?php
	/**
	 * 商品属性视图模型
	 */
	class GoodsAttrModel extends ViewModel{

		protected $tableName = 'type_attr';

		protected $viewFields = array(
			'type_attr'=>array(
				'name','type',
				'_type'=>'LEFT'
				),
			'goods_attr'=>array(
				'id','value','price',
				'_on' => 'type_attr.id=goods_attr.aid'
				)
			);
	}
?>